* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
}

.elevator-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label {
    font-weight: 600;
    color: #7f8c8d;
}

.value {
    font-weight: 500;
    font-size: 1.1rem;
}

.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 电梯井道容器 */
.elevator-shaft-container {
    position: relative;
    width: 400px;
    height: 600px;
}

/* 电梯井道样式 */
.elevator-shaft {
    position: relative;
    width: 200px;
    height: 100%;
    border: 8px solid #34495e;
    border-radius: 15px;
    background-color: #2c3e50;
    margin: 0 auto;
    overflow: hidden;
    background-image: 
        linear-gradient(to right, #34495e 0%, #34495e 10%, transparent 10%, transparent 90%, #34495e 90%, #34495e 100%),
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
}

/* 楼层分隔线 */
.shaft-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* 电梯厢样式 */
.elevator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 33.333%; /* 3层楼，每层占1/3高度 */
    background-color: #3498db;
    transition: bottom 1s ease-in-out;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
    overflow: hidden;
}

/* 电梯运行动画增强 */
.elevator.moving-up {
    animation: elevatorUp 1s ease-in-out;
}

.elevator.moving-down {
    animation: elevatorDown 1s ease-in-out;
}

@keyframes elevatorUp {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes elevatorDown {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(5px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

/* 电梯门样式 */
.elevator-doors {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 30;
}

.door {
    flex: 1;
    background-color: #2980b9;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    background-image: linear-gradient(90deg, #2980b9 0%, #3498db 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 开门动画 */
.doors-open .left-door {
    transform: translateX(-100%);
}

.doors-open .right-door {
    transform: translateX(100%);
}

/* 电梯内部 */
.elevator-interior {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ecf0f1;
    padding: 10px;
}

/* 乘客可视化 */
.passengers-visualization {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    height: 60%;
}

.passenger {
    width: 25px;
    height: 40px;
    background-color: #95a5a6;
    border-radius: 5px;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    position: relative;
}

.passenger::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    background-color: #7f8c8d;
    border-radius: 2px;
}

.passenger.active {
    opacity: 1;
    background-color: #e74c3c;
}

/* 楼层指示器 */
.elevator-floor-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 40;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 电梯内部按钮 */
.elevator-buttons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 40;
}

.button {
    width: 30px;
    height: 30px;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    background-color: #bdc3c7;
    transform: scale(1.1);
}

.button.active {
    background-color: #f1c40f;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

/* 楼层标记 */
.floors {
    position: absolute;
    top: 0;
    left: calc(50% + 120px); /* 电梯井道右侧 */
    width: 100px;
    height: 100%;
    pointer-events: none;
}

.floor {
    height: 33.333%;
    position: relative;
    pointer-events: auto;
}

.floor-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
}

.floor-call-buttons {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.call-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    color: #34495e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.call-button.active {
    background-color: #2ecc71;
    color: white;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 250px;
}

.target-floors, .status-indicators {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.target-floors h2, .status-indicators h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.target-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.target-item {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.target-item:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.target-item .remove {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 状态指示器 */
.indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.indicator:last-child {
    border-bottom: none;
}

.indicator-icon {
    width: 30px;
    height: 30px;
    background-color: #f1f1f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.indicator-text {
    flex: 1;
    font-weight: 500;
}

.indicator-value {
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    background-color: #f1f1f1;
}

.indicator-value.true {
    background-color: #eafaf1;
    color: #27ae60;
}

.indicator-value.false {
    background-color: #fdedeb;
    color: #e74c3c;
}

.indicator-value.up {
    color: #3498db;
    background-color: #ebf5fb;
}

.indicator-value.down {
    color: #9b59b6;
    background-color: #f5eef8;
}

.indicator-value.stop {
    color: #7f8c8d;
    background-color: #f1f1f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .elevator-shaft-container {
        width: 100%;
        max-width: 400px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 400px;
    }
}